package com.liuzhilong.infrastructure.basic.singleton.inner;

/**
 * 内部静态类
 */
public class Singleton {
    private Singleton(){
    }
    public static final Singleton getInstace(){
        return Holder.INSTACE;
    }
    private static class Holder{
        private static Singleton INSTACE = new Singleton();
    }
    public void doSomething(){
        System.out.println(this.getClass().getName());
    }
}
